import request from '@/utils/request'
export function getCategory(data,pageNum,pageSize) {
  return request({
    url: '/api/admin/classify_goods/getClassifyGoodsList',
    method: 'POST',
    data,
    headers: {pageNum:pageNum,pageSize:pageSize}
  })
}
export function addCategory(data) {
  return request({
    url: '/api/admin/classify_goods/addClassifyGoods',
    method: 'POST',
    data
  })
}
export function getCategoryInfo(data) {
  return request({
    url: '/api/admin/classify_goods/ClassifyGoodsInfo',
    method: 'POST',
    data
  })
}
export function updateCategory(data) {
  return request({
    url: '/api/admin/classify_goods/updateClassifyGoods',
    method: 'POST',
    data
  })
}
export function delCategory(data) {
  return request({
    url: '/api/admin/classify_goods/delClassifyGoods',
    method: 'POST',
    data
  })
}
